package com.hjm.project.ShopOrderBreak.ShopOrderBreak.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hjm.project.ShopOrderBreak.ShopOrderBreak.mapper.ShopOrderBreakMapper;
import com.hjm.project.ShopOrderBreak.ShopOrderBreak.domain.ShopOrderBreak;
import com.hjm.project.ShopOrderBreak.ShopOrderBreak.service.IShopOrderBreakService;
import com.hjm.common.utils.text.Convert;

/**
 * 物流订单分发Service业务层处理
 * 
 * @author ShopOrderBreak
 * @date 2020-11-30
 */
@Service
public class ShopOrderBreakServiceImpl implements IShopOrderBreakService 
{
    @Autowired
    private ShopOrderBreakMapper shopOrderBreakMapper;

    /**
     * 查询物流订单分发
     * 
     * @param id 物流订单分发ID
     * @return 物流订单分发
     */
    @Override
    public ShopOrderBreak selectShopOrderBreakById(Long id)
    {
        return shopOrderBreakMapper.selectShopOrderBreakById(id);
    }

    /**
     * 查询物流订单分发列表
     * 
     * @param shopOrderBreak 物流订单分发
     * @return 物流订单分发
     */
    @Override
    public List<ShopOrderBreak> selectShopOrderBreakList(ShopOrderBreak shopOrderBreak)
    {
        return shopOrderBreakMapper.selectShopOrderBreakList(shopOrderBreak);
    }

    /**
     * 新增物流订单分发
     * 
     * @param shopOrderBreak 物流订单分发
     * @return 结果
     */
    @Override
    public int insertShopOrderBreak(ShopOrderBreak shopOrderBreak)
    {
        return shopOrderBreakMapper.insertShopOrderBreak(shopOrderBreak);
    }

    /**
     * 修改物流订单分发
     * 
     * @param shopOrderBreak 物流订单分发
     * @return 结果
     */
    @Override
    public int updateShopOrderBreak(ShopOrderBreak shopOrderBreak)
    {
        return shopOrderBreakMapper.updateShopOrderBreak(shopOrderBreak);
    }

    /**
     * 删除物流订单分发对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShopOrderBreakByIds(String ids)
    {
        return shopOrderBreakMapper.deleteShopOrderBreakByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除物流订单分发信息
     * 
     * @param id 物流订单分发ID
     * @return 结果
     */
    @Override
    public int deleteShopOrderBreakById(Long id)
    {
        return shopOrderBreakMapper.deleteShopOrderBreakById(id);
    }
}
